Skip to content

Conversation

@angeles-mb
Copy link
Contributor

@angeles-mb angeles-mb commented Oct 31, 2025

Closes #237856

Summary

  • Added differentiated error messages for the TagSelector for the following use cases:
    • Tag doesn't exist:
      • If user has permissions, prompt to create it
      • If they don't, prompt to select one from the list
    • Tag exists, prompt to select it
    • Tag exists and it is already selected
  • This change should fix all occurrences of the missing error message for the TagSelector.
  • For the Settings flyout, instead of directly using the TagSelector we are now using the wrapper containing this validation logic, there should be no other changes.

Testing

Flyout Settings:

Screen.Recording.2025-10-31.at.12.03.03.mov

Dashboard Details:

Screen.Recording.2025-10-31.at.12.03.52.mov

Error announcement on VO:

Screenshot 2025-10-31 at 12 04 46

@angeles-mb angeles-mb self-assigned this Oct 31, 2025
@angeles-mb angeles-mb added backport:version Backport to applied version labels v9.2.1 release_note:skip Skip the PR/issue when compiling release notes labels Oct 31, 2025
@angeles-mb angeles-mb marked this pull request as ready for review October 31, 2025 12:36
@angeles-mb angeles-mb requested review from a team as code owners October 31, 2025 12:36
@nickpeihl nickpeihl self-requested a review October 31, 2025 12:46
@angeles-mb
Copy link
Contributor Author

angeles-mb commented Oct 31, 2025

@elasticmachine run docs-build-pr

Copy link
Member

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! code review and tested roles with and without tag create capability.

@bhavyarm bhavyarm added the ci:cloud-deploy Create or update a Cloud deployment label Oct 31, 2025
@bhavyarm
Copy link
Contributor

/ci

Copy link
Contributor

@bhavyarm bhavyarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested on cloud and with voiceover. So happy to see a11y fixes.

@angeles-mb
Copy link
Contributor Author

@elasticmachine merge upstream

@angeles-mb angeles-mb enabled auto-merge (squash) November 3, 2025 12:00
@angeles-mb
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 3, 2025

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dashboard 658.4KB 658.3KB -129.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
savedObjectsTagging 20.7KB 21.7KB +1.0KB

History

cc @angeles-mb

@angeles-mb angeles-mb merged commit 9eb3ad3 into elastic:main Nov 3, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.2

https://github.com/elastic/kibana/actions/runs/19039503059

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
9.2 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 241443

Questions ?

Please refer to the Backport tool documentation

@angeles-mb
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

angeles-mb added a commit to angeles-mb/kibana that referenced this pull request Nov 3, 2025
Closes elastic#237856

## Summary

- Added differentiated error messages for the `TagSelector` for the
following use cases:
  - Tag doesn't exist:
    - If user has permissions, prompt to create it
    - If they don't, prompt to select one from the list
  - Tag exists, prompt to select it
  - Tag exists and it is already selected
- This change should fix all occurrences of the missing error message
for the `TagSelector`.
- For the Settings flyout, instead of directly using the `TagSelector`
we are now using the wrapper containing this validation logic, there
should be no other changes.

### Testing

Flyout Settings:

https://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8

Dashboard Details:

https://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f

Error announcement on VO:

<img width="642" height="673" alt="Screenshot 2025-10-31 at 12 04 46"
src="https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd"
/>

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 9eb3ad3)

# Conflicts:
#	src/platform/plugins/shared/dashboard/public/dashboard_renderer/settings/settings_flyout.tsx
angeles-mb added a commit that referenced this pull request Nov 3, 2025
Closes #237856

## Summary

- Added differentiated error messages for the `TagSelector` for the
following use cases:
  - Tag doesn't exist:
    - If user has permissions, prompt to create it
    - If they don't, prompt to select one from the list
  - Tag exists, prompt to select it
  - Tag exists and it is already selected
- This change should fix all occurrences of the missing error message
for the `TagSelector`.
- For the Settings flyout, instead of directly using the `TagSelector`
we are now using the wrapper containing this validation logic, there
should be no other changes.

### Testing

Flyout Settings:

https://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8

Dashboard Details:

https://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f

Error announcement on VO:

<img width="642" height="673" alt="Screenshot 2025-10-31 at 12 04 46"
src="https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd"
/>

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 9eb3ad3)

# Conflicts:
#	src/platform/plugins/shared/dashboard/public/dashboard_renderer/settings/settings_flyout.tsx
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 4, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.
cc: @angeles-mb

angeles-mb added a commit that referenced this pull request Nov 5, 2025
…241654)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[SharedUX][A11y] Fix tag selector missing error text
(#241443)](#241443)

<!--- Backport version: 10.1.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ángeles Martínez
Barrio","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-11-03T15:17:06Z","message":"[SharedUX][A11y]
Fix tag selector missing error text (#241443)\n\nCloses
https://github.com/elastic/kibana/issues/237856\n\n## Summary\n\n- Added
differentiated error messages for the `TagSelector` for the\nfollowing
use cases:\n - Tag doesn't exist:\n - If user has permissions, prompt to
create it\n - If they don't, prompt to select one from the list\n - Tag
exists, prompt to select it\n - Tag exists and it is already selected\n-
This change should fix all occurrences of the missing error message\nfor
the `TagSelector`.\n- For the Settings flyout, instead of directly using
the `TagSelector`\nwe are now using the wrapper containing this
validation logic, there\nshould be no other changes.\n\n###
Testing\n\nFlyout
Settings:\n\n\nhttps://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8\n\nDashboard
Details:\n\n\nhttps://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f\n\nError
announcement on VO:\n\n<img width=\"642\" height=\"673\"
alt=\"Screenshot 2025-10-31 at 12 04
46\"\nsrc=\"https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd\"\n/>\n\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"9eb3ad35ea648576365ebac5539bfadfff66c6e7","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:cloud-deploy","backport:version","v9.3.0","v9.2.1"],"title":"[SharedUX][A11y]
Fix tag selector missing error
text","number":241443,"url":"https://github.com/elastic/kibana/pull/241443","mergeCommit":{"message":"[SharedUX][A11y]
Fix tag selector missing error text (#241443)\n\nCloses
https://github.com/elastic/kibana/issues/237856\n\n## Summary\n\n- Added
differentiated error messages for the `TagSelector` for the\nfollowing
use cases:\n - Tag doesn't exist:\n - If user has permissions, prompt to
create it\n - If they don't, prompt to select one from the list\n - Tag
exists, prompt to select it\n - Tag exists and it is already selected\n-
This change should fix all occurrences of the missing error message\nfor
the `TagSelector`.\n- For the Settings flyout, instead of directly using
the `TagSelector`\nwe are now using the wrapper containing this
validation logic, there\nshould be no other changes.\n\n###
Testing\n\nFlyout
Settings:\n\n\nhttps://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8\n\nDashboard
Details:\n\n\nhttps://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f\n\nError
announcement on VO:\n\n<img width=\"642\" height=\"673\"
alt=\"Screenshot 2025-10-31 at 12 04
46\"\nsrc=\"https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd\"\n/>\n\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"9eb3ad35ea648576365ebac5539bfadfff66c6e7"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/241443","number":241443,"mergeCommit":{"message":"[SharedUX][A11y]
Fix tag selector missing error text (#241443)\n\nCloses
https://github.com/elastic/kibana/issues/237856\n\n## Summary\n\n- Added
differentiated error messages for the `TagSelector` for the\nfollowing
use cases:\n - Tag doesn't exist:\n - If user has permissions, prompt to
create it\n - If they don't, prompt to select one from the list\n - Tag
exists, prompt to select it\n - Tag exists and it is already selected\n-
This change should fix all occurrences of the missing error message\nfor
the `TagSelector`.\n- For the Settings flyout, instead of directly using
the `TagSelector`\nwe are now using the wrapper containing this
validation logic, there\nshould be no other changes.\n\n###
Testing\n\nFlyout
Settings:\n\n\nhttps://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8\n\nDashboard
Details:\n\n\nhttps://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f\n\nError
announcement on VO:\n\n<img width=\"642\" height=\"673\"
alt=\"Screenshot 2025-10-31 at 12 04
46\"\nsrc=\"https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd\"\n/>\n\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"9eb3ad35ea648576365ebac5539bfadfff66c6e7"}},{"branch":"9.2","label":"v9.2.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels ci:cloud-deploy Create or update a Cloud deployment release_note:skip Skip the PR/issue when compiling release notes v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Platform:Dashboards]Tags field missing error text

5 participants